package com.baizhi.mapper;

import com.baizhi.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    public List<Book> selectBooks(@Param("pageNum")Integer pageNum,
                                  @Param("pageSize")Integer pageSize);
    public Book selectBookById(Integer id);
    public void insertBook(Book b);
    public void deleteBookById(Integer id);
    public void updateBook(Book b);
}
